/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spring.main;

import javax.swing.*;
import java.awt.*;

public class Web extends JFrame {

    String initialURL = "http://www.ole.com.ar";

    public Web() {
        super("Web");
        try {
            JEditorPane htmlPane = new JEditorPane(initialURL);
            htmlPane.setEditable(false);

            JScrollPane scrollPane = new JScrollPane(htmlPane);
            getContentPane().add(scrollPane, BorderLayout.CENTER);

            setSize(300, 300);
            setVisible(true);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
